import turtle

# 设置画布
screen = turtle.Screen()
screen.title("粉色头发的女孩")

# 创建画笔
pen = turtle.Turtle()
pen.speed(3)  # 绘制速度

# 画头部
pen.color("peachpuff")
pen.begin_fill()
pen.circle(80)  # 头部
pen.end_fill()

# 画粉色头发
pen.color("lightpink")
pen.begin_fill()
# 头发轮廓
pen.penup()
pen.goto(-80, 80)
pen.pendown()
pen.circle(100, 180)  # 右半边头发
pen.penup()
pen.goto(-80, 80)
pen.pendown()
pen.circle(-100, 180)  # 左半边头发
pen.end_fill()

# 画眼睛
pen.color("black")
# 右眼
pen.penup()
pen.goto(20, 30)
pen.pendown()
pen.begin_fill()
pen.circle(8)
pen.end_fill()
# 左眼
pen.penup()
pen.goto(-40, 30)
pen.pendown()
pen.begin_fill()
pen.circle(8)
pen.end_fill()

# 画嘴巴
pen.penup()
pen.goto(-30, -10)
pen.pendown()
pen.right(90)
pen.circle(30, 180)  # 微笑的嘴巴

# 隐藏画笔
pen.hideturtle()

# 保持窗口打开
turtle.done()
